<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>session 操作</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<link media="all" rel="stylesheet" type="text/css" href="../css/style.css"/>
</head>
<body class="docs">
    <?php include_once('../source/menu.php');?>
    <div class="right-block">
        <h4 class="title">session 操作</h4>
        <ul  class="tags">
            <li class="keyword">说明</li>
            <li class="gray">
                reginx 默认提供了对PHP内置session操作的封装
            </li>
            <li class="">
                <span class="keyword">初始化</span>: 模块文件须显示开启会话. 即调用 : $this->opensess();
            </li>
            <li class="gray">
                <span class="keyword">其他</span>: 可扩展为数据库方式
            </li>
        </ul>
        <h4 class="title">方法</h4>
        <ul  class="tags">
            <li class="keyword">set(<span class="textgray">$k , &$v</span>)</li>
            <li class="gray">
                存储值
            </li>
            <li class="keyword">get(<span class="textgray">$k</span>)</li>
            <li class="gray">
                获取值
            </li>
            <li class="keyword">del(<span class="textgray">$k</span>)</li>
            <li class="gray">
                删除值
            </li>
            <li class="keyword">has(<span class="textgray">$k</span>)</li>
            <li class="gray">
                是否存在值
            </li>
            <li class="keyword">remove()</li>
            <li class="gray">
                注销会话
            </li>

        </ul>
    </div>
    <div class="clear"></div>
    <div id="usernotes">
        <div class="head">
            <h3 class="title"> note</h3>
        </div>
        <div class="note">文档更新日期; 2012-11-09 ;</div>
    </div>
    <?php include_once('../source/bottom.php'); ?>
</body>
</html>